package com.bosssoft.hr.jobmonitor.entity;

import java.io.Serializable;

public class Task implements Serializable,Comparable<Task>{
    private Integer id;

    private String theme;

    private String desc;

    private Integer adminid;

    private String releaseTime;

    private Integer enable;

//    提醒时间
    private Remind remind;


    public Task(Integer id, String theme, String desc, Integer adminid, String releaseTime, Integer enable) {
        this.id = id;
        this.theme = theme;
        this.desc = desc;
        this.adminid = adminid;
        this.releaseTime = releaseTime;
        this.enable = enable;
    }
    public Task(Integer id, String theme, String desc, Integer adminid, String releaseTime, Integer enable,Remind remind) {
        this.id = id;
        this.theme = theme;
        this.desc = desc;
        this.adminid = adminid;
        this.releaseTime = releaseTime;
        this.enable = enable;
        this.remind=remind;
    }

    public Task() {
    }

    private static final long serialVersionUID = 1L;

    public Remind getRemind() {
        return remind;
    }

    public void setRemind(Remind remind) {
        this.remind = remind;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTheme() {
        return theme;
    }

    public void setTheme(String theme) {
        this.theme = theme == null ? null : theme.trim();
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc == null ? null : desc.trim();
    }

    public Integer getAdminid() {
        return adminid;
    }

    public void setAdminid(Integer adminid) {
        this.adminid = adminid;
    }

    public String getReleasetime() {
        return releaseTime;
    }

    public void setReleasetime(String releaseTime) {
        this.releaseTime = releaseTime == null ? null : releaseTime.trim();
    }

    public Integer getEnable() {
        return enable;
    }

    public void setEnable(Integer enable) {
        this.enable = enable;
    }

    @Override
    public int compareTo(Task o) {
        if(this.id<o.getId()){
            return -1;
        }else {
            return 1;
        }
    }
}